<d-accordion accordionType="embed" linkType="dependOnLinkTypeKey" [autoOpenActiveMenu]="true" [restrictOneOpen]="true"
  [data]="menu" [menuItemTemplate]="menuTemplate">
</d-accordion>
<ng-template #menuTemplate let-item="item">
  <div class="menu-item">
    {{item.title}}
    <d-badge status="common" [count]="item.children?.length"></d-badge>
  </div>
</ng-template>
